﻿<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
  <!--<ContentType ID="0x0120D520" Name="Document Set" Group="Document Set Content Types" Description="Create a document set when you want to manage multiple documents as a single work product." Version="1">
  </ContentType>-->
  <CustomAction Id="EmailDocumentsAsAttachments" RegistrationId="101" 
                RegistrationType="List" Rights="ManagePermissions" Location="CommandUI.Ribbon" 
                Sequence="10000" Title="Adds a button to the Ribbon menu for emailing documents as attachements in a Document Library or List">
    <CommandUIExtension>
      <CommandUIDefinitions>
        <CommandUIDefinition Location="Ribbon.Documents.Share.Controls._children">
          <Button
              Id="Ribbon.Documents.New.EmailDocumentsButton"
              Alt="Email Documents"
              Sequence="1000"
              Command="EmailDocuments"
              Image32by32="/_layouts/EmailDocumentsAsAttachments/email_attach32.png"
              Image16by16="/_layouts/EmailDocumentsAsAttachments/email_attach.png"
              LabelText="Email Documents"
              TemplateAlias="o1" />
        </CommandUIDefinition>
      </CommandUIDefinitions>
      <CommandUIHandlers>
        <CommandUIHandler Command="EmailDocuments" CommandAction="javascript:EmailDocuments();"
          EnabledScript="javascript:EmailDocumentsButtonEnabler();" />
        </CommandUIHandlers>
    </CommandUIExtension>
  </CustomAction>
  <CustomAction Id="Ribbon.Library.Actions.Scripts"
    Location ="ScriptLink"
    ScriptSrc="/_layouts/EmailDocumentsAsAttachments/CustomRibbonActions.js" />
</Elements>
